

from django.urls import  re_path, path
from gitlabManage.ws_consumers_test import ChatConsumer
from gitlabManage.celery_consumers import TaskStatusConsumer
websocket_urlpatterns = [
    path('room/',ChatConsumer.as_asgi()),
    #也可以使用正则路径,这种方式用在群组通信当中
    re_path('ws/chat/(?P<group>\w+)/$',ChatConsumer.as_asgi()),
    re_path(r'ws/task_status/', TaskStatusConsumer.as_asgi()),
]